package com.southwind.phone_store_demohd.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;


import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;
/*
* 购买者的地址
* */
@Data
@Entity
//交给数据库去赋值
@DynamicInsert//动态插入数据
@DynamicUpdate//动态修改数据
public class BuyerAddress {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer addressId;
    private String buyerName;//购买者的名称
    private String buyerPhone;//手机号
    private String buyerAddress;//地址
    private String areaCode;//地址编码
    private Date createTime;
    private Date updateTime;



}
